package com.sky.service.impl;

import com.sky.entity.Category;
import com.sky.mapper.UserCategoryMapper;
import com.sky.service.UserCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @projectName: sky-take-out
 * @package: com.sky.service.impl
 * @className: UserCategoryServiceImpl
 * @author: Eric
 * @description: TODO
 * @date: 2023/9/26 15:05
 * @version: 1.0
 */
@Service
public class UserCategoryServiceImpl implements UserCategoryService {
    @Autowired
    private UserCategoryMapper userCategoryMapper;

    @Override
    public List<Category> categoryList(Integer type) {
        List<Category> categoryList = userCategoryMapper.categoryList(type);
        return categoryList;
    }
}
